import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-04-18
 * Time: 13:51
 */
public class main {
    public static int sum(int x,int y){
        return x + y;
    }
    public static double sum(double x,double y,double z){
        return x + y + z;
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        System.out.println(sum(a,b));
        double x = scanner.nextDouble();
        double y = scanner.nextDouble();
        double z = scanner.nextDouble();
        System.out.println(sum(x,y,z));
    }
}
